using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace Data.Models.Mapping
{
    public class ProductComplete_DetailsMap : EntityTypeConfiguration<ProductComplete_Details>
    {
        public ProductComplete_DetailsMap()
        {
            // Primary Key
            this.HasKey(t => t.ID);

            // Properties
            // Table & Column Mappings
            this.ToTable("ProductComplete_Details");
            this.Property(t => t.ID).HasColumnName("ID");
            this.Property(t => t.ProductProcessID).HasColumnName("ProductProcessID");
            this.Property(t => t.ProductCompleteID).HasColumnName("ProductCompleteID");
            this.Property(t => t.Quantity).HasColumnName("Quantity");
        }
    }
}
